package com.htfyun;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.yinghe.whiteboardlib.fragment.WhiteBoardFragment;

import org.geometerplus.zlibrary.ui.android.R;

/**
 * Created by sst on 2017/11/4.
 */

public class PostilActivity extends AppCompatActivity {

    private WhiteBoardFragment whiteBoardFragment;
    

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.htfyun_activity_postil);
        FragmentTransaction ts = getSupportFragmentManager().beginTransaction();
        whiteBoardFragment = WhiteBoardFragment.newInstance();
        ts.add(R.id.fl_main, whiteBoardFragment, "wb").commit();
        
        findViewById(R.id.imgClose).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
